#-*- coding: utf-8 -*-
import sys
sys.path.append("./script")
try:
	sys.run_in_exe
except:
	reload(sys)
	sys.setdefaultencoding('utf-8')
from object import *
from cocos.director import director
import pyglet
import config

pyglet.resource.path.append("../res")
pyglet.resource.path.append("../res/scene")
pyglet.resource.path.append("../res/img")
pyglet.resource.reindex()

if __name__=="__main__":
	director.init(
		width	=config.basic["window_width"],
		height	=config.basic["window_height"]
	)

#	import init
#	init.InitAll()
	
	scobj=CreateScene(1)
	director.run(scobj)
	
